// Account.cpp : implementation of the CApplication class
//

#include "stdafx.h"
#include "Account.h"

CAccount::CAccount()
{
	// TODO: add member initialization code here
}
CAccount::~CAccount()
{

}

GString CAccount::GetId() const
{
	return m_id;
}
void CAccount::SetId(GString nId)
{
	m_id=nId;
}

GString CAccount::GetLogin() const
{
	return m_login;
}
void CAccount::SetLogin(GString nLogin)
{
	m_login=nLogin;
}

GString CAccount::GetPassword() const
{
	return m_password;
}
void CAccount::SetPassword(GString nPassword)
{
	m_password=nPassword;
}
GString CAccount::GetThirdField() const
{
	return m_thirdField;
}
void CAccount::SetThirdField(GString nThirdField)
{
	m_thirdField=nThirdField;
}
GString CAccount::GetFourthField() const
{
	return m_fourthField;
}
void CAccount::SetFourthField(GString nFourthField)
{
	m_fourthField=nFourthField;
}
bool CAccount::GetEnabled() const
{
	return m_enabled;
}
void CAccount::SetEnabled(bool nEnabled)
{
	m_enabled=nEnabled;
}
GString CAccount::GetOldPassword1() const
{
	return m_oldPassword1;
}
void CAccount::SetOldPassword1(GString nOldPassword1)
{
	m_oldPassword1=nOldPassword1;
}
GString CAccount::GetOldPassword2() const
{
	return m_oldPassword2;
}
void CAccount::SetOldPassword2(GString nOldPassword2)
{
	m_oldPassword2=nOldPassword2;
}
GString CAccount::GetOldPassword3() const
{
	return m_oldPassword3;
}
void CAccount::SetOldPassword3(GString nOldPassword3)
{
	m_oldPassword3=nOldPassword3;
}
GString CAccount::GetOldPassword4() const
{
	return m_oldPassword4;
}
void CAccount::SetOldPassword4(GString nOldPassword4)
{
	m_oldPassword4=nOldPassword4;
}
GString CAccount::GetOldPassword5() const
{
	return m_oldPassword5;
}
void CAccount::SetOldPassword5(GString nOldPassword5)
{
	m_oldPassword5=nOldPassword5;
}
GString CAccount::GetOldPassword6() const
{
	return m_oldPassword6;
}
void CAccount::SetOldPassword6(GString nOldPassword6)
{
	m_oldPassword6=nOldPassword6;
}

void CAccount::MapXMLTagsToMembers()
{
	MapAttribute(&m_id,"id");
	MapAttribute(&m_login,"login");
	MapAttribute(&m_password,"password");
	MapAttribute(&m_thirdField,"thirdField");
	MapAttribute(&m_fourthField,"fourthField");
	MapAttribute(&m_enabled,"enabled");
	MapMember(&m_oldPassword1,"OldPassword1");
	MapMember(&m_oldPassword2,"OldPassword2");
	MapMember(&m_oldPassword3,"OldPassword3");
	MapMember(&m_oldPassword4,"OldPassword4");
	MapMember(&m_oldPassword5,"OldPassword5");
	MapMember(&m_oldPassword6,"OldPassword6");
}
IMPLEMENT_FACTORY(CAccount,Account);